package com.qfmy.app.mapper.common;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.app.mapper.common
 * @date 2025/4/14
 * @description 广告控制mapper
 */
@Mapper
@SuppressWarnings("all")
public interface AdvertisementMapper {

    /**
     * 获取广告
     * @param type
     * @param position
     * @return
     */
    @Select("select image from advertisement where type=#{type} and position=#{position} ")
    List<String> getAdvertisement(Integer type, Integer position);
}
